package com.ruoyi.community.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.community.mapper.HeartFamilyInfoMapper;
import com.ruoyi.community.domain.HeartFamilyInfo;
import com.ruoyi.community.service.IHeartFamilyInfoService;

/**
 * 家属信息Service业务层处理
 * 
 * @author Gaotian
 * @date 2021-12-16
 */
@Service
public class HeartFamilyInfoServiceImpl implements IHeartFamilyInfoService 
{
    @Autowired
    private HeartFamilyInfoMapper heartFamilyInfoMapper;

    /**
     * 查询家属信息
     * 
     * @param familyid 家属信息ID
     * @return 家属信息
     */
    @Override
    public HeartFamilyInfo selectHeartFamilyInfoById(Long familyid)
    {
        return heartFamilyInfoMapper.selectHeartFamilyInfoById(familyid);
    }

    /**
     * 查询家属信息列表
     * 
     * @param heartFamilyInfo 家属信息
     * @return 家属信息
     */
    @Override
    public List<HeartFamilyInfo> selectHeartFamilyInfoList(HeartFamilyInfo heartFamilyInfo)
    {
        return heartFamilyInfoMapper.selectHeartFamilyInfoList(heartFamilyInfo);
    }

    /**
     * 新增家属信息
     * 
     * @param heartFamilyInfo 家属信息
     * @return 结果
     */
    @Override
    public int insertHeartFamilyInfo(HeartFamilyInfo heartFamilyInfo)
    {
        return heartFamilyInfoMapper.insertHeartFamilyInfo(heartFamilyInfo);
    }

    /**
     * 修改家属信息
     * 
     * @param heartFamilyInfo 家属信息
     * @return 结果
     */
    @Override
    public int updateHeartFamilyInfo(HeartFamilyInfo heartFamilyInfo)
    {
        return heartFamilyInfoMapper.updateHeartFamilyInfo(heartFamilyInfo);
    }

    /**
     * 批量删除家属信息
     * 
     * @param familyids 需要删除的家属信息ID
     * @return 结果
     */
    @Override
    public int deleteHeartFamilyInfoByIds(Long[] familyids)
    {
        return heartFamilyInfoMapper.deleteHeartFamilyInfoByIds(familyids);
    }

    /**
     * 删除家属信息信息
     * 
     * @param familyid 家属信息ID
     * @return 结果
     */
    @Override
    public int deleteHeartFamilyInfoById(Long familyid)
    {
        return heartFamilyInfoMapper.deleteHeartFamilyInfoById(familyid);
    }
}
